package com.youren.health.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.youren.health.dao.UserDao;
import com.youren.health.pojo.User;
import com.youren.health.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @program: health_parent
 * @author: You_ren_a
 * @create: 2020-11-30 23:34
 **/
@Service(interfaceClass = UserService.class)
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;
    @Override
    public User findByUsername(String username) {
        User user = userDao.findByUsername(username);
        return user;
    }
}
